from .dl_config import *


class dl_single(dl_base):
	def dl_start(self):
		if len(self.dl_urls) > 0:
			for url in self.dl_urls:
				dl_download(url)
		else:
			logging.info('未获取到请求链接')


if __name__ == '__main__':
	st = time.time()
	urls = ['https://www.x6d.com/uploads/allimg/210602/1622617240840177.jpg',
	        'https://www.x6d.com/uploads/allimg/210602/1622617240305367.jpg',
	        'https://www.x6d.com/uploads/allimg/210602/1622617240860226.jpg']
	logging.info(json.dumps(urls))
	dl = dl_single(urls)
	dl.dl_start()
	et = time.time()
	print(f'dl_single 耗时: {et-st}')
	
	pass
